import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Write a description of class Torero here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Torero extends Personaje
{
    /**
     * Act - do whatever the Torero wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.
     */
    public void act() 
    {
        if(Greenfoot.isKeyDown("down"))
        {
            move(10);
            this.setImage("torero2.png");
            Greenfoot.delay(2);
            this.setImage("torero3.png");
            Greenfoot.delay(2);
            this.setImage("torero4.png");
            Greenfoot.delay(2);
            this.setImage("torero5.png");
            Greenfoot.delay(2);
            this.setImage("torero6.png");
            Greenfoot.delay(2);
            this.setImage("torero7.png");
            Greenfoot.delay(2);
            this.setImage("torero8.png");
            Greenfoot.delay(2);
            this.setImage("torero9.png");
            Greenfoot.delay(2);
            this.setImage("torero.png");
            Greenfoot.delay(2);
        }
        // Add your action code here.
        
    }    
}
